<!--学员评价-->
<template>
    <div>   
         <!-- 面包屑导航 -->
            <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/index' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item>学员评价</el-breadcrumb-item>
            </el-breadcrumb>
              <div style="margin: 10px auto;"></div>
            

            <div style="margin: 10px auto;"></div>

            <el-table size="small"  style="width: 100%" :data="listData" highlight-current-row v-loading="loading"  element-loading-text="拼命加载中" >
                
                <el-table-column
                    width="200"
                prop="username"
                label="姓名">
                </el-table-column>

                <el-table-column
                    width="200"
                prop=""
                label="头像">
                <template slot-scope="scope">
                        <el-avatar :size="50" :src="scope.row.url"></el-avatar>
                </template>
                </el-table-column>

                <el-table-column
                    width="200"
                prop="tel"
                label="电话">
                </el-table-column>
               
               
                <el-table-column
                    width="200"
                prop="remarks"
                label="评价">
                </el-table-column>

                <el-table-column
                    width="200"
                prop="score"
                label="评分">
                <template slot-scope="scope">
                        <el-rate v-model="scope.row.score" disabled></el-rate>
                </template>
                </el-table-column>


            </el-table>


    </div>
</template>
<script>
export default {
    data() {
        return {
            listData:[],
            loading:false,
            
        }
    },
    created(){
        this.findData();
    },
    methods: {
        findData(){
            this.MyLoading();
            
            this.$api.get("/order/token/findOrdersByCoach","",res=>{
                this.listData = res.data.data;
            })
        },
         MyLoading(){
            this.loading =true;
            setTimeout(()=>{
                this.loading =false
            },500)
        }
    },
}
</script>
<style scoped>

</style>